<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery-3.4.1.js"></script>
</head>
<body>
    <div></div>
    <div></div>
    <div id='box1'></div>
    <script>
        var div1=$('div');
        var div3=$('#box1');
    </script>
</body>
</html>